import http from '@/utils/http.js';

export default {
	loginApi: data => {
		return http.post('/common/login', data);
	},
	logoutApi: data => {
		return http.post('/common/logout', data);
	},
	getUserInfoApi: () => {
		return http.get('/sysUser/userInfo');
	},
	getCaptchaApi: () => {
		return http.get('/common/captcha');
	},
	uploadImgApi: file => {
		return http.post('/common/uploadImg', file);
	},
	uploadFileApi: file => {
		return http.post('/common/uploadFile', file);
	}
};
